extends "../xili-1/xili-1.gd"


func _extInit():
	._extInit()
	lv = 2             #等级的设置
	addSkill("每次使用技能，损失25%血量，额外造成[本回合已损失血量*1](不超过血量200%)的雷击伤害", "血怒")
var totalHurt = 0
func _onBattleStart():
	._onBattleStart()
	totalHurt = 0
var p2 = 1
func onHurtEnd(atkInfo):
	.onHurtEnd(atkInfo)
	totalHurt += atkInfo.hurtVal
	
func _castCdSkill(id):
	._castCdSkill(id)
	if att.hp/att.maxHp > 0.25:
		forceHurtSelf(att.maxHp*0.25)
		totalHurt += att.maxHp*0.25
	if aiCha != null:
		azurHurtChara(aiCha, min(att.maxHp*2, totalHurt), sys.HurtType.WEAPON, sys.AtkType.TORPEDO, "血怒", false, p2)
		if upgraded == 1:
			healCha(self, att.maxHp*0.2)

